package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@ToString
@ApiModel("护理任务执行DTO")
public class NursingTaskExecuteDto {

    @NotNull(message = "护理任务ID不能为空")
    @ApiModelProperty(value = "护理任务ID", required = true)
    @JsonProperty("taskId")
    private Integer taskId;

    @ApiModelProperty(value = "预计服务时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("estimatedServerTime")
    private LocalDateTime estimatedServerTime;

    @ApiModelProperty(value = "执行记录")
    @JsonProperty("mark")
    private String mark;

    @ApiModelProperty(value = "任务图片")
    @JsonProperty("taskImage")
    private String taskImage;
} 